home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / lib / xulrunner-1.9.0.14 / chrome / toolkit.jar / content / global / xul.css < prev   
Encoding:
Cascading Style Sheet File  |  2009-08-12  |  25.0 KB  |  1,086 lines

  1. /** this should only contain XUL dialog and document window widget defaults. Defaults for widgets of
  2.     a particular application should be in that application's style sheet.
  3.     For example style definitions for navigator can be found in navigator.css
  4.  
  5.    THIS FILE IS LOCKED DOWN.  YOU ARE NOT ALLOWED TO MODIFY IT WITHOUT FIRST HAVING YOUR
  6.    CHANGES REVIEWED BY enndeakin@sympatico.ca
  7. **/
  8.  
  9. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */
  10. @namespace html url("http://www.w3.org/1999/xhtml"); /* namespace for HTML elements */
  11. @namespace xbl url("http://www.mozilla.org/xbl"); /* namespace for XBL elements */
  12.  
  13. * {
  14.   -moz-user-focus: ignore;
  15.   -moz-user-select: -moz-none;
  16.   display: -moz-box;
  17. }
  18.  
  19. :root {
  20.   text-rendering: optimizeLegibility;
  21. }
  22.  
  23. /* hide the content and destroy the frame */
  24. *[hidden="true"] {
  25.   display: none;
  26. }
  27.  
  28. /* hide the content, but don't destroy the frames */
  29. *[collapsed="true"], 
  30. *[moz-collapsed="true"] {
  31.   visibility: collapse;
  32. }
  33.  
  34.  
  35. /* ::::::::::
  36.    :: Rules for 'hiding' portions of the chrome for special
  37.    :: kinds of windows (not JUST browser windows) with toolbars
  38.    ::::: */
  39.  
  40. window[chromehidden~="menubar"] .chromeclass-menubar,
  41. window[chromehidden~="directories"] .chromeclass-directories,
  42. window[chromehidden~="status"] .chromeclass-status,
  43. window[chromehidden~="extrachrome"] .chromeclass-extrachrome,
  44. window[chromehidden~="location"] .chromeclass-location,
  45. window[chromehidden~="location"][chromehidden~="toolbar"] .chromeclass-toolbar,
  46. window[chromehidden~="toolbar"] .chromeclass-toolbar-additional
  47. {
  48.   display: none;
  49. }
  50.  
  51. /* ::::::::::
  52.    :: Rules for forcing direction for entry and display of URIs
  53.    :: or URI elements
  54.    ::::: */
  55.  
  56. .uri-element
  57. {
  58.   direction: ltr !important;
  59. }
  60.  
  61. /****** elements that have no visual representation ******/
  62.  
  63. script, data,
  64. xbl|children,
  65. commands, commandset, command,
  66. broadcasterset, broadcaster, observes,
  67. keyset, key, toolbarpalette, toolbarset,
  68. template, rule, conditions, action, 
  69. bindings, binding, content, member, triple,
  70. treechildren, treeitem, treeseparator, treerow, treecell {
  71.   display: none;
  72. }
  73.  
  74. /********** focus rules **********/
  75.  
  76. button,
  77. checkbox,
  78. colorpicker[type="button"],
  79. datepicker[type="grid"],
  80. menulist,
  81. radiogroup,
  82. tree,
  83. browser,
  84. editor,
  85. iframe {
  86.   -moz-user-focus: normal;
  87. }
  88.  
  89. menulist[editable="true"] {
  90.   -moz-user-focus: ignore;
  91. }
  92.  
  93. /******** window & page ******/
  94.  
  95. window, 
  96. page {
  97.   overflow: -moz-hidden-unscrollable;
  98.   -moz-box-orient: vertical;
  99. }
  100.  
  101. /******** box *******/
  102.  
  103. vbox {
  104.   -moz-box-orient: vertical;
  105. }
  106.  
  107. bbox {
  108.   -moz-box-align: baseline;
  109. }
  110.  
  111. /********** button **********/
  112.  
  113. button {
  114.   -moz-binding: url("chrome://global/content/bindings/button.xml#button");
  115. }
  116.  
  117. button[type="repeat"] {
  118.   -moz-binding: url("chrome://global/content/bindings/button.xml#button-repeat");
  119. }
  120.  
  121. button[type="menu"] {
  122.   -moz-binding: url("chrome://global/content/bindings/button.xml#menu");
  123. }
  124.  
  125. button[type="menu-button"] {
  126.   -moz-binding: url("chrome://global/content/bindings/button.xml#menu-button");
  127. }
  128.  
  129. /********** toolbarbutton **********/
  130.  
  131. toolbarbutton {
  132.   -moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#toolbarbutton");
  133. }
  134.  
  135. toolbarbutton[type="menu"] {
  136.   -moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#menu");
  137. }
  138.  
  139. toolbarbutton[type="menu-button"] {
  140.   -moz-binding: url("chrome://global/content/bindings/toolbarbutton.xml#menu-button");
  141. }
  142.  
  143. /******** browser, editor, iframe ********/
  144.  
  145. browser,
  146. editor,
  147. iframe {
  148.   display: inline;
  149. }
  150.  
  151. browser {
  152.   -moz-binding: url("chrome://global/content/bindings/browser.xml#browser");
  153. }
  154.  
  155. editor {
  156.   -moz-binding: url("chrome://global/content/bindings/editor.xml#editor");
  157. }
  158.  
  159. iframe {
  160.   -moz-binding: url("chrome://global/content/bindings/general.xml#iframe");
  161. }
  162.  
  163. /********** notifications **********/
  164.  
  165. notificationbox {
  166.   -moz-binding: url("chrome://global/content/bindings/notification.xml#notificationbox");
  167.   -moz-box-orient: vertical;
  168.   overflow-y: hidden;
  169. }
  170.  
  171. notification {
  172.   -moz-binding: url("chrome://global/content/bindings/notification.xml#notification");
  173. }
  174.  
  175. /********** image **********/
  176.  
  177. image {
  178.   -moz-binding: url("chrome://global/content/bindings/general.xml#image");
  179. }
  180.  
  181. /********** checkbox **********/
  182.  
  183. checkbox {
  184.   -moz-binding: url("chrome://global/content/bindings/checkbox.xml#checkbox");
  185. }
  186.  
  187. /********** radio **********/
  188.  
  189. radiogroup {
  190.   -moz-binding: url("chrome://global/content/bindings/radio.xml#radiogroup");
  191.   -moz-box-orient: vertical;
  192. }
  193.  
  194. radio {
  195.   -moz-binding: url("chrome://global/content/bindings/radio.xml#radio");
  196. }
  197.  
  198. /******** groupbox *********/
  199.  
  200. groupbox {
  201.   -moz-binding: url("chrome://global/content/bindings/groupbox.xml#groupbox");
  202.   display: -moz-groupbox;
  203. }
  204.  
  205. caption {
  206.   -moz-binding: url("chrome://global/content/bindings/groupbox.xml#caption");
  207. }
  208.  
  209. .groupbox-body {
  210.   -moz-box-pack: inherit;
  211.   -moz-box-align: inherit;
  212.   -moz-box-orient: vertical;
  213. }
  214.  
  215. /******* toolbar *******/
  216.  
  217. toolbox { 
  218.   -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbox");
  219.   -moz-box-orient: vertical;
  220. }
  221.   
  222. toolbar {
  223.   -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar");
  224. }
  225.  
  226.  
  227. toolbarseparator {
  228.   -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbardecoration");
  229. }
  230.  
  231. toolbarspacer {
  232.   -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbardecoration");
  233. }
  234.  
  235. toolbarspring {
  236.   -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbardecoration");
  237.   -moz-box-flex: 1000;
  238. }
  239.  
  240. toolbarpaletteitem {
  241.   -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbarpaletteitem");
  242. }
  243.  
  244. toolbarpaletteitem[place="palette"] {
  245.   -moz-box-orient: vertical;
  246.   -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbarpaletteitem-palette");
  247. }
  248.  
  249. /********* menubar ***********/
  250.  
  251. menubar {
  252.   -moz-binding: url("chrome://global/content/bindings/toolbar.xml#menubar");
  253. }
  254.  
  255. /********* menu ***********/
  256.  
  257. menubar > menu {
  258.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menu-menubar");
  259. }
  260.  
  261. menubar > menu.menu-iconic {
  262.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menu-menubar-iconic");
  263. }
  264.  
  265. menu {
  266.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menu");
  267. }
  268.   
  269. menu.menu-iconic {
  270.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menu-iconic");
  271. }
  272.  
  273. menubar > menu:empty {
  274.   visibility: collapse;
  275. }
  276.  
  277. /********* menuitem ***********/
  278.  
  279. menuitem {
  280.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem");
  281. }
  282.  
  283. menuitem.menuitem-iconic {
  284.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic");
  285. }
  286.  
  287. menuitem[description] {
  288.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic-desc-noaccel");
  289. }
  290.  
  291. menuitem[type="checkbox"],
  292. menuitem[type="radio"] {
  293.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic");
  294. }
  295.  
  296. menuitem.menuitem-non-iconic {
  297.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menubutton-item");
  298. }
  299.  
  300. /********* detection of system setting to use icons in menus ***********/
  301. menuitem:not([type]):not(:-moz-system-metric(images-in-menus)) > .menu-iconic-left {
  302.   visibility: hidden;
  303. }
  304.  
  305. menu:not(:-moz-system-metric(images-in-menus)) > .menu-iconic-left {
  306.   visibility: hidden;
  307. }
  308.  
  309. /********* menuseparator ***********/
  310.  
  311. menuseparator {
  312.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menuseparator");
  313. }
  314.  
  315. /********* popup & menupopup ***********/
  316.  
  317. /* <popup> is deprecated.  Only <menupopup> and <tooltip> are still valid. */ 
  318.  
  319. popup,
  320. menupopup {
  321.   -moz-binding: url("chrome://global/content/bindings/popup.xml#popup");
  322.   -moz-box-orient: vertical;
  323. }
  324.  
  325. panel {
  326.   -moz-binding: url("chrome://global/content/bindings/popup.xml#panel");
  327.   -moz-box-orient: vertical;
  328. }
  329.  
  330. popup,
  331. menupopup,
  332. panel,
  333. tooltip {
  334.   display: -moz-popup;
  335.   z-index: 2147483647; 
  336. }
  337.  
  338. tooltip {
  339.   -moz-binding: url("chrome://global/content/bindings/popup.xml#tooltip");
  340.   -moz-box-orient: vertical;
  341.   white-space: pre-wrap;
  342.   margin-top: 21px;
  343. }
  344.  
  345. window[sizemode="maximized"] statusbarpanel.statusbar-resizerpanel {
  346.   visibility: collapse;
  347. }
  348.  
  349. /********** floating popups **********/
  350.  
  351. /*
  352. titlebar {
  353.   -moz-binding: url("chrome://global/content/bindings/popup.xml#titlebar");  
  354. }  
  355.  
  356. resizer[resizerdirection="right"] {
  357.   -moz-binding: url("chrome://global/content/bindings/popup.xml#ew-resizer");
  358. }  
  359.  
  360. resizer[resizerdirection="bottom"] {
  361.   -moz-binding: url("chrome://global/content/bindings/popup.xml#ns-resizer");
  362. }  
  363.  
  364. resizer[resizerdirection="bottomright"] {
  365.   -moz-binding: url("chrome://global/content/bindings/popup.xml#diag-resizer");  
  366. }  
  367.  
  368. floatingwindow {
  369.   -moz-binding: url("chrome://global/content/bindings/popup.xml#floater-normal");
  370.   -moz-box-orient: vertical;
  371.   display: none;
  372.   z-index: 2147483647; 
  373. }
  374.  
  375. floatingwindow[docked="left"] {
  376.   -moz-binding: url("chrome://global/content/bindings/popup.xml#floater-dock-left");
  377. }
  378.  
  379. button.popupClose {
  380.   -moz-binding: url("chrome://global/content/bindings/popup.xml#close-button") !important;
  381. }  
  382. */
  383. /******** grid **********/
  384.  
  385. grid {
  386.   display: -moz-grid;
  387. }
  388.  
  389. rows, 
  390. columns {
  391.   display: -moz-grid-group;
  392. }
  393.  
  394. row,
  395. column {
  396.   display: -moz-grid-line;
  397. }
  398.  
  399. rows {
  400.   -moz-box-orient: vertical;
  401. }
  402.  
  403. column {
  404.   -moz-box-orient: vertical;
  405. }
  406.  
  407. /******** listbox **********/
  408.  
  409. listbox {
  410.   -moz-binding: url("chrome://global/content/bindings/listbox.xml#listbox");
  411. }
  412.  
  413. listhead {
  414.   -moz-binding: url("chrome://global/content/bindings/listbox.xml#listhead");
  415. }
  416.  
  417. listrows {
  418.   -moz-binding: url("chrome://global/content/bindings/listbox.xml#listrows");
  419. }
  420.  
  421. listitem {
  422.   -moz-binding: url("chrome://global/content/bindings/listbox.xml#listitem");
  423. }
  424.  
  425. listitem[type="checkbox"] {
  426.   -moz-binding: url("chrome://global/content/bindings/listbox.xml#listitem-checkbox");
  427. }
  428.  
  429. listheader {
  430.   -moz-binding: url("chrome://global/content/bindings/listbox.xml#listheader");
  431.   -moz-box-ordinal-group: 2147483646;
  432. }
  433.  
  434. listcell {
  435.   -moz-binding: url("chrome://global/content/bindings/listbox.xml#listcell");
  436. }
  437.  
  438. listcell[type="checkbox"] {
  439.   -moz-binding: url("chrome://global/content/bindings/listbox.xml#listcell-checkbox");
  440. }
  441.  
  442. .listitem-iconic {
  443.   -moz-binding: url("chrome://global/content/bindings/listbox.xml#listitem-iconic");
  444. }
  445.  
  446. listitem[type="checkbox"].listitem-iconic {
  447.   -moz-binding: url("chrome://global/content/bindings/listbox.xml#listitem-checkbox-iconic");
  448. }
  449.  
  450. .listcell-iconic {
  451.   -moz-binding: url("chrome://global/content/bindings/listbox.xml#listcell-iconic");
  452. }
  453.  
  454. listcell[type="checkbox"].listcell-iconic {
  455.   -moz-binding: url("chrome://global/content/bindings/listbox.xml#listcell-checkbox-iconic");
  456. }
  457.  
  458. listbox {
  459.   display: -moz-grid;
  460. }
  461.  
  462. listbox[rows] {
  463.   height: auto;
  464. }
  465.  
  466. listcols, listhead, listrows, listboxbody {
  467.   display: -moz-grid-group;
  468. }
  469.  
  470. listcol, listitem, listheaditem {
  471.   display: -moz-grid-line;
  472. }
  473.  
  474. listbox {
  475.   -moz-user-focus: normal;
  476.   -moz-box-orient: vertical;
  477.   min-width: 0px;
  478.   min-height: 0px;
  479.   width: 200px;
  480.   height: 200px;
  481. }
  482.  
  483. listhead {
  484.   -moz-box-orient: vertical;
  485. }
  486.  
  487. listrows {
  488.   -moz-box-orient: vertical;
  489.   -moz-box-flex: 1;
  490. }
  491.  
  492. listboxbody {
  493.   -moz-box-orient: vertical;
  494.   -moz-box-flex: 1;
  495.   /* Don't permit a horizontal scrollbar. See bug 285449 */
  496.   overflow-x: hidden !important;
  497.   overflow-y: auto;
  498.   min-height: 0px;
  499. }
  500.  
  501. listcol {
  502.   -moz-box-orient: vertical;
  503.   min-width: 16px;
  504. }
  505.  
  506. listcell {
  507.   -moz-box-align: center;
  508. }
  509.  
  510. /******** tree ******/
  511.  
  512. tree {
  513.   -moz-binding: url("chrome://global/content/bindings/tree.xml#tree");
  514. }
  515.  
  516. treecols {
  517.   -moz-binding: url("chrome://global/content/bindings/tree.xml#treecols");
  518. }
  519.  
  520. treecol {
  521.   -moz-binding: url("chrome://global/content/bindings/tree.xml#treecol");
  522.   -moz-box-ordinal-group: 2147483646;
  523. }
  524.  
  525. treecol.treecol-image {
  526.   -moz-binding: url("chrome://global/content/bindings/tree.xml#treecol-image");
  527. }
  528.  
  529. tree > treechildren {
  530.   display: -moz-box;
  531.   -moz-binding: url("chrome://global/content/bindings/tree.xml#treebody");
  532.   -moz-user-select: none;
  533.   -moz-box-flex: 1;
  534. }
  535.  
  536. treerows {
  537.   -moz-binding: url("chrome://global/content/bindings/tree.xml#treerows");
  538. }
  539.  
  540. treecolpicker {
  541.   -moz-binding: url("chrome://global/content/bindings/tree.xml#columnpicker");
  542. }
  543.  
  544. tree {
  545.   -moz-box-orient: vertical;
  546.   min-width: 0px;
  547.   min-height: 0px;
  548.   width: 10px;
  549.   height: 10px;
  550. }
  551.  
  552. tree[hidecolumnpicker="true"] > treecols > treecolpicker {
  553.   display: none;
  554. }
  555.  
  556. treecol {
  557.   min-width: 16px;
  558. }
  559.  
  560. treecol[hidden="true"] {
  561.   visibility: collapse;
  562.   display: -moz-box;
  563. }
  564.  
  565. .tree-scrollable-columns {
  566.   /* Yes, Virginia, this makes it scrollable */
  567.   overflow: hidden;
  568. }
  569.  
  570. /********** deck & stack *********/
  571.  
  572. deck {
  573.   display: -moz-deck;
  574.   -moz-binding: url("chrome://global/content/bindings/general.xml#deck");
  575. }
  576.  
  577. stack, bulletinboard {
  578.   display: -moz-stack;
  579. }
  580.  
  581. /********** tabbox *********/
  582.  
  583. tabbox {
  584.   -moz-binding: url("chrome://global/content/bindings/tabbox.xml#tabbox");
  585.   -moz-box-orient: vertical;
  586. }
  587.  
  588. tabs {
  589.   -moz-binding: url("chrome://global/content/bindings/tabbox.xml#tabs");
  590.   -moz-box-orient: horizontal;
  591. }
  592.  
  593. /**
  594.  * XXXben - this looks like something added specifically for tabbrowser.
  595.  *          if it turns out no one uses this that can't easily be evangelized to
  596.  *          use their own roll-your-own binding, then we should get rid of this
  597.  *          to tighten up the toolkit api. This binding made obsolete in Firefox
  598.  *          by 308396. 
  599.  */
  600. tabs[closebutton="true"] {
  601.   -moz-binding: url("chrome://global/content/bindings/tabbox.xml#tabs-closebutton");
  602. }
  603.  
  604. tab {
  605.   -moz-binding: url("chrome://global/content/bindings/tabbox.xml#tab");
  606.   -moz-box-align: center;
  607.   -moz-box-pack: center;
  608. }
  609.  
  610. tabpanels {
  611.   -moz-binding: url("chrome://global/content/bindings/tabbox.xml#tabpanels");
  612.   display: -moz-deck;
  613. }
  614.  
  615. /********** progressmeter **********/
  616.  
  617. progressmeter {
  618.   -moz-binding: url("chrome://global/content/bindings/progressmeter.xml#progressmeter");
  619. }
  620.  
  621. /********** basic rule for anonymous content that needs to pass box properties through
  622.  ********** to an insertion point parent that holds the real kids **************/
  623.  
  624.  .box-inherit {
  625.    -moz-box-orient: inherit;
  626.    -moz-box-pack: inherit;
  627.    -moz-box-align: inherit;
  628.    -moz-box-direction: inherit;
  629. }
  630.  
  631. /********** label **********/
  632.  
  633. description {
  634.   -moz-binding: url("chrome://global/content/bindings/text.xml#text-base");
  635. }
  636.  
  637. label {
  638.   -moz-binding: url("chrome://global/content/bindings/text.xml#text-label");
  639. }
  640.  
  641. label.text-link, label[onclick] {
  642.   -moz-binding: url("chrome://global/content/bindings/text.xml#text-link");
  643.   -moz-user-focus: normal;
  644. }
  645.  
  646. label[control], label.radio-label, label.checkbox-label {
  647.   -moz-binding: url("chrome://global/content/bindings/text.xml#label-control");
  648. }
  649.  
  650. html|span.accesskey {
  651.   text-decoration: underline;
  652. }
  653.  
  654. /********** textbox **********/
  655.  
  656. textbox {
  657.   -moz-binding: url("chrome://global/content/bindings/textbox.xml#textbox");
  658.   -moz-user-select: text;
  659. }
  660.  
  661. textbox[multiline="true"] {
  662.   -moz-binding: url("chrome://global/content/bindings/textbox.xml#textarea");
  663. }
  664.  
  665. html|*.textbox-input {
  666.   -moz-appearance: none !important;
  667.   text-align: inherit;
  668. }
  669.  
  670. html|*.textbox-textarea {
  671.   -moz-appearance: none !important;
  672. }
  673.  
  674. .textbox-input-box {
  675.   -moz-binding: url("chrome://global/content/bindings/textbox.xml#input-box");
  676. }
  677.  
  678. .textbox-input-box[spellcheck="true"] {
  679.   -moz-binding: url("chrome://global/content/bindings/textbox.xml#input-box-spell");
  680. }
  681.  
  682. textbox[type="timed"] {
  683.   -moz-binding: url("chrome://global/content/bindings/textbox.xml#timed-textbox");
  684. }
  685.  
  686. textbox[type="number"] {
  687.   -moz-binding: url("chrome://global/content/bindings/numberbox.xml#numberbox");
  688. }
  689.  
  690. /********** autocomplete textbox **********/
  691.  
  692. /* thunderbird and Nvu don't use the new toolkit's autocomplete widget yet.... */
  693.  
  694.  
  695.  
  696. textbox[type="autocomplete"] {
  697.   -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#autocomplete");
  698. }
  699.  
  700. panel[type="autocomplete"] {
  701.   -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#autocomplete-result-popup");
  702. }
  703.  
  704. panel[type="autocomplete-richlistbox"] {
  705.   -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#autocomplete-rich-result-popup");
  706. }
  707.  
  708. .autocomplete-tree {
  709.   -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#autocomplete-tree");
  710.   -moz-user-focus: ignore;
  711. }
  712.  
  713. .autocomplete-treebody {
  714.   -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#autocomplete-treebody");
  715. }
  716.  
  717. .autocomplete-richlistbox {
  718.   -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#autocomplete-richlistbox");
  719.   -moz-user-focus: ignore;
  720.   -moz-appearance: none;
  721. }
  722.  
  723. .autocomplete-richlistbox > scrollbox {
  724.   overflow-x: hidden !important;
  725. }
  726.  
  727. .autocomplete-richlistitem {
  728.   -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#autocomplete-richlistitem");
  729.   -moz-box-orient: vertical;
  730.   overflow: -moz-hidden-unscrollable;
  731. }
  732.  
  733. .autocomplete-treerows {
  734.   -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#autocomplete-treerows");
  735. }
  736.  
  737. .autocomplete-history-dropmarker {
  738.   display: none;
  739. }
  740.  
  741. .autocomplete-history-dropmarker[enablehistory="true"] {
  742.   display: -moz-box;
  743.   -moz-binding: url("chrome://global/content/bindings/autocomplete.xml#history-dropmarker");
  744. }
  745.  
  746. /* Bug 453827 */
  747. toolbaritem.chromeclass-location > textbox > hbox > hbox > html|*.textbox-input > html|*.anonymous-div {
  748.   /* Make the line-height equal to the available height */
  749.   line-height: -moz-block-height;
  750. }
  751.  
  752.  
  753.  
  754.  
  755. /* the C++ implementation of widgets is too eager to make popups visible.
  756.    this causes problems (bug 120155 and others), thus this workaround: */
  757. popup[type="autocomplete"][hidden="true"] {
  758.   visibility: hidden;
  759. }
  760.  
  761. /* The following rule is here to fix bug 96899 (and now 117952).  
  762.    Somehow trees create a situation
  763.    in which a popupset flows itself as if its popup child is directly within it
  764.    instead of the placeholder child that should actually be inside the popupset.
  765.    This is a stopgap measure, and it does not address the real bug.  */
  766. .autocomplete-result-popupset {
  767.   max-width: 0px;
  768.   width: 0 !important;
  769. }
  770.  
  771. /********** colorpicker **********/
  772.  
  773. colorpicker {
  774.   -moz-binding: url("chrome://global/content/bindings/colorpicker.xml#colorpicker");
  775. }
  776.  
  777. colorpicker[type="button"] {
  778.   -moz-binding: url("chrome://global/content/bindings/colorpicker.xml#colorpicker-button");
  779. }
  780.  
  781. .colorpickertile {
  782.   -moz-binding: url("chrome://global/content/bindings/colorpicker.xml#colorpickertile");
  783. }
  784.  
  785. /********** menulist **********/
  786.  
  787. menulist {
  788.   -moz-binding: url("chrome://global/content/bindings/menulist.xml#menulist");
  789. }
  790.  
  791. menulist[editable="true"] {
  792.   -moz-binding: url("chrome://global/content/bindings/menulist.xml#menulist-editable");
  793. }
  794.  
  795. menulist[type="description"] {
  796.   -moz-binding: url("chrome://global/content/bindings/menulist.xml#menulist-description");
  797. }
  798.  
  799. html|*.menulist-editable-input {
  800.   -moz-appearance: none !important;
  801.   background: transparent ! important;
  802. }
  803.  
  804. menulist > menupopup > menuitem {
  805.   -moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic-noaccel");
  806. }
  807.  
  808. dropmarker {
  809.   -moz-binding: url("chrome://global/content/bindings/general.xml#dropmarker");
  810. }
  811.  
  812. /********** splitter **********/
  813.  
  814. splitter {
  815.   -moz-binding: url("chrome://global/content/bindings/splitter.xml#splitter");
  816. }
  817.  
  818. grippy {
  819.   -moz-binding: url("chrome://global/content/bindings/splitter.xml#grippy");
  820. }
  821.  
  822. .tree-splitter {
  823.   width: 0px;
  824.   max-width: 0px;
  825.   min-width: 0% ! important;
  826.   min-height: 0% ! important;
  827.   -moz-box-ordinal-group: 2147483646;
  828. }
  829.  
  830. /********** scrollbar **********/
  831.  
  832. /* Scrollbars are never flipped even if BiDI kicks in. */
  833. scrollbar {
  834.   direction: ltr;
  835. }
  836.  
  837. thumb {
  838.   -moz-binding: url(chrome://global/content/bindings/scrollbar.xml#thumb);
  839.   display: -moz-box !important;
  840. }
  841.  
  842. .scale-thumb {
  843.   -moz-binding: url(chrome://global/content/bindings/scale.xml#scalethumb);
  844. }
  845.  
  846. scrollbar, scrollbarbutton, scrollcorner, slider, thumb, scale {
  847.   -moz-user-select: none;
  848. }
  849.  
  850. scrollcorner {
  851.   display: -moz-box !important;
  852. }
  853.  
  854. scrollcorner[hidden="true"] {
  855.   display: none !important;
  856. }
  857.  
  858. scrollbar[value="hidden"] {
  859.   visibility: hidden;
  860. }
  861.  
  862. scale {
  863.   -moz-binding: url(chrome://global/content/bindings/scale.xml#scale);
  864. }
  865.  
  866. .scale-slider {
  867.   -moz-binding: url(chrome://global/content/bindings/scale.xml#scaleslider);
  868.   -moz-user-focus: normal;
  869. }
  870.  
  871. scrollbarbutton[sbattr="scrollbar-up-top"]:not(:-moz-system-metric(scrollbar-start-backward)),
  872. scrollbarbutton[sbattr="scrollbar-down-top"]:not(:-moz-system-metric(scrollbar-start-forward)),
  873. scrollbarbutton[sbattr="scrollbar-up-bottom"]:not(:-moz-system-metric(scrollbar-end-backward)),
  874. scrollbarbutton[sbattr="scrollbar-down-bottom"]:not(:-moz-system-metric(scrollbar-end-forward)) {
  875.   display: none;
  876. }
  877.  
  878. thumb[sbattr="scrollbar-thumb"]:-moz-system-metric(scrollbar-thumb-proportional) {
  879.   -moz-box-flex: 1;
  880. }
  881.  
  882. /******** scrollbox ********/
  883.  
  884. scrollbox {
  885.   -moz-binding: url("chrome://global/content/bindings/scrollbox.xml#scrollbox");
  886.   /* This makes it scrollable! */
  887.   overflow: hidden;
  888. }
  889.  
  890. arrowscrollbox {
  891.   -moz-binding: url("chrome://global/content/bindings/scrollbox.xml#arrowscrollbox");
  892. }
  893.  
  894. arrowscrollbox[clicktoscroll="true"] {
  895.   -moz-binding: url("chrome://global/content/bindings/scrollbox.xml#arrowscrollbox-clicktoscroll");
  896. }
  897.  
  898. autorepeatbutton {
  899.   -moz-binding: url("chrome://global/content/bindings/scrollbox.xml#autorepeatbutton");
  900. }
  901.  
  902. /********** statusbar **********/
  903.  
  904. statusbar 
  905. {
  906.   -moz-binding: url("chrome://global/content/bindings/general.xml#statusbar");
  907. }
  908.  
  909. statusbarpanel {
  910.   -moz-binding: url("chrome://global/content/bindings/general.xml#statusbarpanel");
  911. }
  912.  
  913. .statusbarpanel-iconic {
  914.   -moz-binding: url("chrome://global/content/bindings/general.xml#statusbarpanel-iconic");
  915. }
  916.  
  917. .statusbarpanel-iconic-text {
  918.   -moz-binding: url("chrome://global/content/bindings/general.xml#statusbarpanel-iconic-text");
  919. }
  920.  
  921. .statusbarpanel-menu-iconic {
  922.   -moz-binding: url("chrome://global/content/bindings/general.xml#statusbarpanel-menu-iconic");
  923. }
  924.  
  925. /********** spinbuttons ***********/
  926.  
  927. spinbuttons {
  928.   -moz-binding: url("chrome://global/content/bindings/spinbuttons.xml#spinbuttons");
  929. }
  930.  
  931. .spinbuttons-button {
  932.   -moz-user-focus: ignore;
  933. }
  934.  
  935. /********** stringbundle **********/
  936.  
  937. stringbundleset {
  938.   -moz-binding: url("chrome://global/content/bindings/stringbundle.xml#stringbundleset");
  939.   visibility: collapse;
  940. }
  941.  
  942. stringbundle {
  943.   -moz-binding: url("chrome://global/content/bindings/stringbundle.xml#stringbundle");
  944.   visibility: collapse;
  945. }
  946.  
  947. /********** dialog **********/
  948.  
  949. dialog {
  950.   -moz-binding: url("chrome://global/content/bindings/dialog.xml#dialog");
  951.   -moz-box-orient: vertical;
  952. }
  953.  
  954. dialogheader {
  955.   -moz-binding: url("chrome://global/content/bindings/dialog.xml#dialogheader");
  956. }
  957.  
  958. /********* page ************/
  959.  
  960. page {
  961.   -moz-box-orient: vertical;
  962. }
  963.  
  964. /********** wizard **********/
  965.  
  966. wizard {
  967.   -moz-binding: url("chrome://global/content/bindings/wizard.xml#wizard");
  968.   -moz-box-orient: vertical;
  969.   width: 40em;
  970.   height: 30em;
  971. }
  972.  
  973. wizardpage {
  974.   -moz-binding: url("chrome://global/content/bindings/wizard.xml#wizardpage");
  975.   -moz-box-orient: vertical;
  976.   overflow: auto;
  977. }
  978.  
  979. .wizard-header {
  980.   -moz-binding: url("chrome://global/content/bindings/wizard.xml#wizard-header");
  981. }
  982.  
  983. .wizard-buttons {
  984.   -moz-binding: url("chrome://global/content/bindings/wizard.xml#wizard-buttons");
  985. }
  986.  
  987. /********** preferences ********/
  988.  
  989. prefwindow {
  990.   -moz-binding: url("chrome://global/content/bindings/preferences.xml#prefwindow");  
  991.   -moz-box-orient: vertical;
  992. }
  993.  
  994. prefpane {
  995.   -moz-binding: url("chrome://global/content/bindings/preferences.xml#prefpane");  
  996.   -moz-box-orient: vertical;
  997. }
  998.  
  999. prefwindow > .paneDeckContainer {
  1000.   overflow: hidden;
  1001. }
  1002.  
  1003. prefpane > .content-box {
  1004.   overflow: hidden;
  1005. }
  1006.  
  1007. prefwindow[type="child"] > .paneDeckContainer {
  1008.   overflow: -moz-hidden-unscrollable;
  1009. }
  1010.  
  1011. prefwindow[type="child"] > prefpane > .content-box {
  1012.   -moz-box-flex: 1;
  1013.   overflow: -moz-hidden-unscrollable;
  1014. }
  1015.  
  1016. preferences {
  1017.   -moz-binding: url("chrome://global/content/bindings/preferences.xml#preferences");
  1018.   visibility: collapse;
  1019. }
  1020.  
  1021. preference {
  1022.   -moz-binding: url("chrome://global/content/bindings/preferences.xml#preference");  
  1023.   visibility: collapse;
  1024. }
  1025.  
  1026. radio[pane] {
  1027.   -moz-binding: url("chrome://global/content/bindings/preferences.xml#panebutton") !important; 
  1028.   -moz-box-orient: vertical;
  1029.   -moz-appearance: none;
  1030.   -moz-box-align: center;
  1031. }
  1032.  
  1033. prefwindow[chromehidden~="toolbar"] .chromeclass-toolbar
  1034. {
  1035.   display: none;
  1036. }
  1037.  
  1038. /********** expander ********/
  1039.  
  1040. expander {
  1041.   -moz-binding: url("chrome://global/content/bindings/expander.xml#expander");
  1042.   -moz-box-orient: vertical;
  1043. }
  1044.  
  1045.  
  1046. /********** Rich Listbox ********/
  1047.  
  1048. richlistbox {
  1049.   -moz-binding: url('chrome://global/content/bindings/richlistbox.xml#richlistbox');
  1050.   -moz-user-focus: normal;
  1051.   -moz-appearance: listbox;
  1052.   -moz-box-orient: vertical;
  1053. }
  1054.  
  1055. richlistitem {
  1056.   -moz-binding: url('chrome://global/content/bindings/richlistbox.xml#richlistitem');
  1057. }
  1058.  
  1059. richlistbox > listheader {
  1060.   -moz-box-ordinal-group: 1;
  1061. }
  1062.  
  1063. /********** datepicker and timepicker ********/
  1064.  
  1065. datepicker {
  1066.   -moz-binding: url('chrome://global/content/bindings/datetimepicker.xml#datepicker');
  1067. }
  1068.  
  1069. datepicker[type="popup"] {
  1070.   -moz-binding: url('chrome://global/content/bindings/datetimepicker.xml#datepicker-popup');
  1071. }
  1072.  
  1073. datepicker[type="grid"] {
  1074.   -moz-binding: url('chrome://global/content/bindings/datetimepicker.xml#datepicker-grid');
  1075. }
  1076.  
  1077. timepicker {
  1078.   -moz-binding: url('chrome://global/content/bindings/datetimepicker.xml#timepicker');
  1079. }
  1080.  
  1081.  
  1082. /*********** findbar ************/
  1083. findbar {
  1084.   -moz-binding: url('chrome://global/content/bindings/findbar.xml#findbar');
  1085. }
  1086.